<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="zyEngineerList" fitColumns="false" title="工程师管理" actionUrl="zyEngineerController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="系统用户"  field="tsBaseUser.realName"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="工程师编号"  field="engineerNo"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="姓名"  field="name"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="性别"  field="gender"    queryMode="single" dictionary="<%=StaticValue.DIC_SEX %>"   width="120"></t:dgCol>
   <t:dgCol title="手机号"  field="cellphone"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="邮箱"  field="email"    queryMode="single"  width="150"></t:dgCol>
   <t:dgCol title="身份证号"  field="idNum"  query="true"  queryMode="single"  width="120" hidden="true"></t:dgCol>
   <t:dgCol title="所属机构"  field="belongOrg.shortname"  query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="认证证书"  field="authentication"  query="true"  queryMode="single" dictionary="<%=StaticValue.DIC_CERTIFICATE %>"  width="120"></t:dgCol>
   <t:dgCol title="证书编号"  field="certificateNum"  queryMode="single" width="150"></t:dgCol>
   <t:dgCol title="上级工程师或人员"  field="parentId.name"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="是否是区域工程师"  field="isAreaEngineer"    queryMode="single" dictionary="<%=StaticValue.DIC_TRUE_OR_FALSE %>"	hidden="true"  width="120"></t:dgCol>
   <t:dgCol title="状态"  field="state"    queryMode="single" dictionary="<%=StaticValue.DIC_ENGINEER_STATE %>"   width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt operationCode="EngineerDel" title="删除" url="zyEngineerController.do?dologicDel&id={id}" />
   <t:dgToolBar operationCode="EngineerAdd" title="录入" icon="icon-add" height="500"  url="zyEngineerController.do?goAdd" funname="add"></t:dgToolBar>
   <t:dgToolBar operationCode="EngineerEdit" title="编辑" icon="icon-edit" height="500" url="zyEngineerController.do?goUpdate" funname="update"></t:dgToolBar>
   <t:dgToolBar operationCode="EngineerSearch" title="查看" icon="icon-search" height="450" url="zyEngineerController.do?goView" funname="goView"></t:dgToolBar>
   <t:dgToolBar operationCode="EngineerPut" title="导入" icon="icon-put" funname="createdetailwindow('基础数据导入', 'uploadEngineerController.do?uploadFile',470,150)"></t:dgToolBar>
   <%-- <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar> --%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/zybk/zy_engineer/zyEngineerList.js"></script>	
<script type="text/javascript">
function goView(title,url,datagridName,width,height){
	var datas = $("#zyEngineerList").datagrid("getSelections");
	if(datas.length != 1){
		tip("请选择一项查看");
		return;
	}
	var id = datas[0].id;
	createdetailwindow(title,url+"&id="+id,width,height);
}
</script>